gdkgl.c: Avoid GCCism in Pointer Arithmetic
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 24 Nov 2014 03:05:18 +0000 (11:05 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 24 Nov 2014 14:57:25 +0000 (22:57 +0800)
commit16e863ce6575edb8be7907341ce443b1cb601221
treec98e4700ad8e59bde5ec66081bb62e1c65be9020
parentc7f3b93d99f22ed066dbcce4d7bc5e6bd097ad67
gdkgl.c: Avoid GCCism in Pointer Arithmetic

NULL-plus-something could be seen by the compiler to attempt to do
arithmetic with void *, which is a GCCism.  Instead, do the math normally
and cast the results as a void *.

https://bugzilla.gnome.org/show_bug.cgi?id=740605
gdk/gdkgl.c